<?php

namespace App\Observers;

use App\Models\Article;


class ArticleObserver
{
    /**
     * Handle the Aprender "saved" event.
     *
     * @param  \App\Models\Article  $Article
     * @return void
     */
    public function created(Article $Article)
    {
        $Article->flushCache();
    }
    /**
     * Handle the Aprender "saved" event.
     *
     * @param  \App\Models\Article  $Article
     * @return void
     */
    public function updated(Article $Article)
    {
        $Article->flushCache();
    }
    /**
     * Handle the Aprender "saved" event.
     *
     * @param  \App\Models\Article  $Article
     * @return void
     */
    public function saved(Article $Article)
    {
        $Article->flushCache();
    }

    /**
     * Handle the Expert "deleted" event.
     *
     *@param  \App\Models\Article  $Article
     * @return void
     */
    public function deleted(Article $Article)
    {
        $Article->flushCache();
    }
}
